# encodint:utf8
import os
import pymysql


class DbEditor:
    def __init__(self, dbconf):
        host = dbconf.get("host")
        user = dbconf.get("user")
        dbname = dbconf.get("dbname")
        pwd = dbconf.get("pwd")
        conn = pymysql.connect(host=self._host, user=user,
                               password=pwd, database=dbname)
        curcon = conn.cursor()

    def 


if __name__ == "__main__":
    params = {
        "host": "192.168.10.117",
        "user": "root",
        "pwd": "123456",
        "dbname": "game_dev"
    }
    DbEditor(params)
